/**
 * 生成阿里云上传图片随机文件名
 *
 * @param randomLength
 * @returns {string}
 * @constructor
 */
function GenNonDuplicateID(randomLength) {
    var myDate = new Date();
    var y = myDate.getFullYear();
    var m = myDate.getMonth() + 1;
    var d = myDate.getDate();
    return 'appUpload/' + y + '' + m + '' + d + '/' + Number(Math.random().toString().substr(3, randomLength) + Date.now()).toString(36) + Number(Math.random().toString().substr(3, randomLength) + Date.now()).toString(36) + '.jpg'
}

export {
    GenNonDuplicateID
}
